<?php
namespace app\index\controller;

use app\BaseController;
use think\App;
use app\common\model\JfUser as JfUserUserModel;
use think\facade\Cookie;
use think\facade\View;

class IndexBaseController extends BaseController
{
    protected $jf_user_model;
    protected $jf_user_info;

    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->jf_user_model = new JfUserUserModel();
        $this->jf_user_info = json_decode(Cookie::get('jf_user_info'));
        View::assign([
            'jf_user_info'=>$this->jf_user_info,
        ]);
    }
}
